package com.longfor.dragonshard.dto.demo;

import com.longfor.drogon.common.dto.BaseListDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.validator.constraints.Range;

/**
 * 
 * @author chi.zhang
 * @create 2017/10/21 下午6:04
 *
 * @version v1.0
 **/
public class DemoSearchListDTO extends BaseListDTO {
    private static final long serialVersionUID = -1L;

    /**
     * 状态：0=不可用，1=正常
     */
    @Range(min = 0, max = 1)
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("status", status)
                .toString();
    }
}